package com.open.capacity.reimburse.service;

import com.open.capacity.reimburse.entity.BasePayItemForm;

import com.open.capacity.commons.PageResult;
import com.open.capacity.reimburse.entity.BasePayItemFormSelect;

import java.util.Map;
import java.util.List;

/**
 * 支出事项-表单标准项
 *
 * @author
 * @email
 * @date 2023-11-01 19:00:37
 */
public interface BasePayItemFormService {
    /**
     * 添加
     *
     * @param basePayItemForm
     */
    int save(BasePayItemForm basePayItemForm);

    /**
     * 修改
     *
     * @param basePayItemForm
     */
    int update(BasePayItemForm basePayItemForm);

    /**
     * 删除
     *
     * @param id
     */
    int delete(String id);


    /**
     * 查询记录
     *
     * @param id
     * @return
     */
    BasePayItemForm findById(String id);


    /**
     * 列表
     *
     * @param payitemId
     * @return
     */
    List<BasePayItemForm> findByPayitemId(String payitemId);

    /**
     * 列表
     *
     * @param payitemIds
     * @return
     */
    Map<String, List<BasePayItemForm>> findByPayitemIds(String payitemIds);


    /**
     * 查询下拉选项
     *
     * @param formId
     * @return
     */
    List<BasePayItemFormSelect> findSelectByFormId(String formId, String keyword);


    /**
     * 查询下拉选项
     *
     * @param selectId
     * @return
     */
    BasePayItemFormSelect findSelectById(String selectId);
}

